package com.niit.session7.loop;

public class ReConnection {
	public static void main(String[] args) throws InterruptedException {
//		实现游戏的自动重连
		for (int i = 1; i <= 7; i++) {
			System.out.println("自动重连，第[" + i + "/7]次尝试...");
//			让线程休眠一秒钟
			Thread.sleep(1000);
		}
	}

}
